package com.cw.carwashserve.mapper;

import com.cw.carwashserve.domain.Services;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ServiceMapper {
    // 查询服务列表
    List<Services> selectServiceList(Services service);

    // 查询服务数量
    Long selectServeCount(Services service);

    // 获取服务详情
    Services selectServiceById(Long id);

    // 新增
    int insertService(Services service);

    // 修改
    int updateService(Services service);

    // 删除
    int deleteServiceById(Long id);

    // 批量删除
    int deleteServiceByIds(@Param("ids") Long[] ids);

}
